//
//  NSString+STString.m
//  OCVVeibo
//
//  Created by leergou on 16/7/31.
//  Copyright © 2016年 WhiteHouse. All rights reserved.
//

#import "NSString+STString.h"

@implementation NSString (STString)


// 截取字符串方法封装
- (NSString *)subString:(NSString *)startString endString:(NSString *)endString{
    
    NSRange startRange = [self rangeOfString:startString];
    NSRange endRange = [self rangeOfString:endString];
    NSRange range = NSMakeRange(startRange.location + startRange.length, endRange.location - startRange.location - startRange.length);
    return [self substringWithRange:range];
    
}




@end
